package tk.winshu.shortestpath.model;

import java.awt.*;
import java.awt.geom.Point2D;

/**
 * @author jason
 * @since 2019/10/19.
 */
public class Runner extends NObject {

    private Image image;

    public Runner(int index, Point2D point, Image image) {
        super(index, point.getX(), point.getY());
        this.image = image;
    }

    public void draw(Graphics2D g2d) {
        super.draw(g2d, image, Color.WHITE, false);
    }
}
